package com.ktjy.goods.domain;

import com.ktjy.common.annotation.Excel;
import com.ktjy.common.core.domain.BaseEntity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 规格属性对象 t_attr
 *
 * @author ktjy
 * @date 2025-03-13
 */
@Data
@TableName("t_attr")
public class Goods extends BaseEntity {
private static final long serialVersionUID=1L;

        /** 规格属性Id */
            @TableId(value = "id" , type = IdType.AUTO)
        private Long id;

        /** 规格属性名 */
                @Excel(name = "规格属性名")
            @TableField(value = "name")
        private String name;

        /** 排序值 */
                @Excel(name = "排序值")
            @TableField(value = "order_num")
        private Long orderNum;

        /** 状态 */
                @Excel(name = "状态")
            @TableField(value = "enabled")
        private Long enabled;


@Override
public String toString(){
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("id" ,getId())
        .append("name" ,getName())
        .append("orderNum" ,getOrderNum())
        .append("enabled" ,getEnabled())
        .append("createTime" ,getCreateTime())
        .append("updateTime" ,getUpdateTime())
        .append("createBy" ,getCreateBy())
        .append("updateBy" ,getUpdateBy())
        .append("remark" ,getRemark())
            .toString();
}
        }